<template>
    <div class="list">
        <el-table :data="getVvip" border style="width: 100%">
            <el-table-column prop="uid" label="用户编号" width="180">
            </el-table-column>
            <el-table-column prop="nickname" label="昵称" width="180">
            </el-table-column>
            <el-table-column prop="phone" label="手机号">
            </el-table-column>
            <el-table-column prop="status" label="状态">
                <el-tag>启用</el-tag>
            </el-table-column>
            <el-table-column prop="" label="操作">
                <template slot-scope="item">
                    <div>
                        <el-button @click="edit(item.row.uid)" type="primary" plain>编辑</el-button>
                    </div>
                </template>

            </el-table-column>
        </el-table>
    </div>
</template>
<script>
import { mapGetters, mapActions } from 'vuex';
export default {
    data() {
        return {
            
        }
    },
    computed: {
        ...mapGetters({
            getVvip: 'vvip/getVvip'
        })
    },
    mounted() {
        this.getvvipAction()
    },
    methods: {
        ...mapActions({
            getvvipAction: 'vvip/getvvipAction'
        }),
        //编辑
        edit(uid){
            this.$emit('edit',uid)
        }
    }
}
</script>
<style scoped></style>